package edu.school.mapper;

import edu.school.entity.User;
import edu.school.entity.UserExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);
    User selectByKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKey(@Param("user") User user);

    int deleteByPrimaryKey(@Param("id") Integer id);

    int batchDelete(@Param("ids") int[] ids);

    User findUser(@Param("user") User user);
}